package com.flow.asyncflow.core.entity.core;

import lombok.Data;

/**
 * 节点返回
 */
@Data
public class AsyncFlowResponse<TRes> {
    /**
     * code 200表示成功 其他标示失败
     */
    private int code;
    /**
     * 消息
     */
    private String msg;

    /**
     * 异步流具体返回参数
     */
    private TRes tRes;

    public AsyncFlowResponse(int code, String msg) {
        this.code = code;
        this.msg = msg;
        tRes = null;
    }

    public AsyncFlowResponse() {

    }
}
